package com.witte.service;

import com.witte.entity.Chance;
import com.witte.entity.Product;
import com.witte.entity.Service;
import io.swagger.models.auth.In;

import java.util.List;

public interface ProductService {
    List<Product> selectAll();
    Product selectByPrimaryKey(String productno);
    int deleteByPrimaryKey(String productno);

    int updateByProductNo(Product product);
    int insertSelective(Product product);

    public List<Product> getListForPage( Integer beginPage, Integer pageSize);

    public int getRecodeCount();

    public List<Product> getListByProductName(String name , Integer beginPage, Integer pageSize);

    public int getNameCount(String name);
}
